const childProcess = require('child_process');
const { logger, sleep } = require('./util');

const child = childProcess.fork('./ti_worker_scan_v7.js');

child.on('exit', async (code) => {
    logger('重启进程');
    await sleep(2000);
    childProcess.fork('./scan2.js');
});
